<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      /*
        1. 语法错误，编译出错，编辑器会提示错误
        2. 运行时错误，中断程序执行
        3. 逻辑错误，程序不会中断执行，只有人可以理解的错误
      */
      // const 1a = 100;

      try {
        console.log("1");
        JSON.parse(`{"name":"jack",}`);
        console.log("2");
        console.log("3");
      } catch (e) {
        console.log("error");
      }
    </script>
  </body>
</html>
